home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
iritsm3s.zip
/
makefile.unx
< prev
next >
Wrap
Makefile
|
1992-03-01
|
2KB
|
79 lines
#
# This make file is the main make file of the IRIT solid modeller and its
# auxilary tools, under UNIX.
#
# Do the following before run make:
#
# 1. Edit 'makeflag.unx' for the exact path names to be used for libraries and
# binaries. Set the proper C compiler and graphics library flags in
# makeflag.unx as well.
# 2. The libgif.a is not provided here. See the documentation on how to get
# it. Without it poly3d-r cannot be build and poly3d with build without
# screen save into gif options. Both are not major to this package.
# The make files are set as if libgif.a IS NOT PROVIDED.
#
# Gershon Elber, Nov. 1991
#
include makeflag.unx
#
#
#
ALL_DIRS = cagd_lib misc_lib irit poly3d poly3d-h iritfltr docs # poly3d-r
#
# Uncommend the following variable to only see the actions taken.
#
# VIEW_ONLY = -n
SHELL = /bin/sh
all: binaries doc
-for f in "" \
"Before executing the test suite and/or any usage of this" \
"package you will have to issue the following commands:" \
"" \
"setenv IRIT_PATH $(BIN_DIR)/" \
"set path = (path $(BIN_DIR))" \
"" \
"or similar."; do \
(echo $$f) \
done
binaries:
-for f in $(ALL_DIRS); do \
(cd $$f \
&& echo ----------- `pwd` ------------- \
&& make $(VIEW_ONLY) -f makefile.unx install); \
done
strip $(BIN_DIR)/poly3d $(BIN_DIR)/poly3d-h \
$(BIN_DIR)/irit $(BIN_DIR)/irit2ray \
$(BIN_DIR)/irit2nff $(BIN_DIR)/dat2irit
#
# Make hardcopy documentation.
#
doc:
(cd docs && \
make $(VIEW_ONLY) -f makefile.unx irit.tex irit.doc)
clean:
-rm .~* .\#* # Emacs backup files.
-for f in $(ALL_DIRS); do \
(rm $$f/*.a $$f/*.o $$f/*mon.out $$f/.~* $$f/.\#* $$f/*mon.out); \
done
-rm poly3d-r/*.gif
-rm poly3d-h/*.hdn
-rm irit/*.dat
-rm docs/irithlp docs/irithlp.o
#
# Test some of the above programs. Make sure $(BIN_DIR) is in your path.
#
test:
-(cd irit && irit demo)
-for f in poly3d poly3d-h; do \
(cd $$f && csh test.bat); \
done